//
//  KLClearTableHeaderView.m
//  KunLun
//
//  Created by Mac on 2017/12/29.
//  Copyright © 2017年 stoneobs@icloud.com. All rights reserved.
//

#import "KLClearTableHeaderView.h"
@interface KLClearTableHeaderView()
@property(nonatomic, assign) BOOL                     flag;
@end
@implementation KLClearTableHeaderView
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
      //  [self configSubView];
    }
    return self;
}
#pragma mark --subView
- (void)configSubView{
    UITapGestureRecognizer * tapges = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(viewDidTap:)];
    [self addGestureRecognizer:tapges];
}
- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event{
    NSSet * set = event.allTouches;
    NSArray * array = self.gestureRecognizers;
    NSInteger type = event.type;
    NSInteger subType = event.subtype;
//    NSObject * obj = [event valueForKey:@"hidEvent"];
    if (self.hitTestView) {
     return   [self.hitTestView hitTest:point withEvent:event];
    }
    return [super hitTest:point withEvent:event];

}
- (void)viewDidTap:(UITapGestureRecognizer*)tap{
    
}
- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
    UITouch * touch = touches.anyObject;
    CGPoint  pint = [touch locationInView:self];
    if (self.hitTestView) {
           [self.hitTestView hitTest:pint withEvent:event];
        }
}
@end
